<?php $this->load->view('header', array('activeLink' => "products")); ?>

<?php $this->load->view('head'); ?>

<div class="a-col">
	<?php  $this->load->view('leftProductMenu'); ?>
</div>
<div class="b-col">
	<?php echo $bread_crumbs; ?>
	
	<?php 	
		foreach ($products_model->getProducts() as $product) 
		{
			//if($selected_category_id < 0 || $products_model->isSubCat($product->category_id, $selected_category_id)) {
				echo 		'<a class="product-link" href="/smaragd/products/info/' . $product->id . '">';
				echo '<div class="product">';
				echo 	'<div class="product-imageBorder">';
				echo 	    '<img class="product-image" src="/smaragd/resources/products/' . $product->image . '"></img>';
				echo 	'</div>';
				echo    '<h1>' . $product->name . '</h1>';
				echo 	'<p class="price">' . $product->price . ' Ft</p>';
				echo '</div>';
				
			//}
		}
	?>
</div>

<?php $this->load->view('footer'); ?>